home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python2.5-minimal.postrm < prev    next >
Text File  |  2008-10-05  |  779b  |  28 lines

  1. #! /bin/sh -e
  2.  
  3. if [ "$1" = "remove" ]; then
  4.  
  5.     (find /usr/lib/python2.5 -name '*.py[co]' | xargs rm -f {}) 2>/dev/null || true
  6.  
  7.     for d in `find /usr/lib/python2.5 -depth -type d -empty 2> /dev/null`; do \
  8.         while rmdir $d 2> /dev/null; do d=`dirname $d`; done; \
  9.     done
  10.  
  11.     if [ -f /var/lib/python/python2.5_installed ]; then
  12.     rm -f /var/lib/python/python2.5_installed
  13.     rmdir --ignore-fail-on-non-empty /var/lib/python 2>/dev/null
  14.     fi
  15. fi
  16.  
  17. if [ "$1" = "purge" ]; then
  18.     for d in `find /usr/lib/python2.5 -depth -type d -empty 2> /dev/null`; do \
  19.         while rmdir $d 2> /dev/null; do d=`dirname $d`; done; \
  20.     done
  21.     rm -f /etc/python2.5/site.py /etc/python2.5/sitecustomize.py
  22.     rmdir --ignore-fail-on-non-empty /etc/python2.5 2>/dev/null
  23. fi
  24.  
  25.  
  26.  
  27. exit 0
  28.